As this is the very first exercise in this workshop, it is relatively easy and short. Its purpose is to get used to this exercise format and, more importantly, to install all necessary packages for this course.
Note: You can find the solutions for this exercise and all
other exercises in the ./solutions folder in the
repo/directory that contains the course materials. You can copy code
from these exercise files by clicking on the small blue clipboard icon
in the code boxes’ upper right corner.
And here comes our very first exercise (which is not very spatial…):
easypackages packages, which
can be installed with the command
install.packages("easypackages"). After loading the package
with library(easypackages) you can load and
install packages with the command
easypackages::packages("fancy_package_1", "fancy_package_2", ...).
easypackages::packages(
"dplyr",
"ggplot2",
"ggsn",
"haven",
"osmdata",
"OpenStreetMap",
"reticulate",
"sf",
"spatialreg",
"spatstat",
"sfdep",
"spdep",
"stars",
"terra",
"tmap",
"tmaptools",
"raster",
"StefanJuenger/z11"
)
## Lade nötiges Paket: haven
## Lade nötiges Paket: osmdata
## Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright
## Lade nötiges Paket: OpenStreetMap
## Lade nötiges Paket: spatialreg
## Lade nötiges Paket: Matrix
##
## Attache Paket: 'spatialreg'
## Die folgenden Objekte sind maskiert von 'package:spdep':
##
## get.ClusterOption, get.coresOption, get.mcOption, get.VerboseOption, get.ZeroPolicyOption, set.ClusterOption,
## set.coresOption, set.mcOption, set.VerboseOption, set.ZeroPolicyOption
## Lade nötiges Paket: z11
## All packages loaded successfully
That’s it. Please notify us if there are any issues with installing
the packages or, more generally, your R installation.
…oh, and if you got some time left: